package cn.iocoder.yudao.framework.chatgpt.config;

import com.unfbx.chatgpt.entity.chat.ChatCompletion;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import java.util.List;
@Data
@ConfigurationProperties(prefix = "yudao.chatgpt")
@Validated
public class ChatGPTProperties {
    private String apiHost;

    private List<String> apiKeys;

    /**
     * 每一次回答会给出几条答案
     */
    private int answerCount = 1;

    private String model = ChatCompletion.Model.GPT_3_5_TURBO.getName();

    private double temperature = 0.2;

    private String proxyUrl;

    private int proxyPort;

    /**
     * 设定使用哪一种MQ消息队列
     */
    private String mqTpye = "rocketMQ";

}
